package com.qimei.onerice.dao;

import com.qimei.onerice.entity.OrderDetail;

import java.util.List;

public interface OrderDetailDao {
	int addOrderDetail(OrderDetail orderDetail);
	OrderDetail getOrderDetailById(int orderDetailId);
	List<OrderDetail> getOrderDetailsByOrderId(int orderId);
	int updateOrderDetail(OrderDetail orderDetail);
	int updateQuantity(int orderDetailId, int quantity);
	int deleteOrderDetail(int orderDetailId);
	OrderDetail getOrderDetailByDishId(int orderId, int dishId);
}